package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class IndexController {
    @GetMapping("/index")
    private String index() {
        return "index";
    }

    @GetMapping("/common/{id}")
    public String common(@PathVariable("id") int id) {
        return "common/" + id;
    }

    @GetMapping("/vip/{id}")
    public String vip(@PathVariable("id") int id) {
        return "vip/" + id;
    }
}
